package com.xafc.demo.sys.controller.view;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Api(tags="角色相关界面")
@Controller
@RequestMapping("/sys/role")
public class RoleView {

    @ApiOperation(value = "角色列表界面")
    @PreAuthorize("hasAuthority('SYS_ROLE_LIST')")
    @GetMapping("/list")
    public String list(HttpServletRequest request){
        return "sys/role/list";
    }

}
